package cn.tedu.ha;

import java.io.File;
import java.io.IOException;
import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) throws IOException {
     File f=new File("F:\\ideaIO\\1.txt");
        System.out.println(f.getName());

       f=new File("F:\\ideaIO");
        System.out.println(f.createNewFile());

        String[] a=f.list();
        System.out.println(Arrays.toString(a));
        File[] b=f.listFiles();
        System.out.println(Arrays.toString(b));

    }
}
